package com.ruoyi.labdata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.labdata.mapper.LabRepairedDeviceMapper;
import com.ruoyi.labdata.domain.LabRepairedDevice;
import com.ruoyi.labdata.service.ILabRepairedDeviceService;

/**
 * 仪器维修Service业务层处理
 * 
 * @author winner pan
 * @date 2022-03-20
 */
@Service
public class LabRepairedDeviceServiceImpl implements ILabRepairedDeviceService 
{
    @Autowired
    private LabRepairedDeviceMapper labRepairedDeviceMapper;

    /**
     * 查询仪器维修
     * 
     * @param instanceId 仪器维修ID
     * @return 仪器维修
     */
    @Override
    public LabRepairedDevice selectLabRepairedDeviceById(Long instanceId)
    {
        return labRepairedDeviceMapper.selectLabRepairedDeviceById(instanceId);
    }

    /**
     * 查询仪器维修列表
     * 
     * @param labRepairedDevice 仪器维修
     * @return 仪器维修
     */
    @Override
    public List<LabRepairedDevice> selectLabRepairedDeviceList(LabRepairedDevice labRepairedDevice)
    {
        return labRepairedDeviceMapper.selectLabRepairedDeviceList(labRepairedDevice);
    }

    /**
     * 新增仪器维修
     * 
     * @param labRepairedDevice 仪器维修
     * @return 结果
     */
    @Override
    public int insertLabRepairedDevice(LabRepairedDevice labRepairedDevice)
    {
        return labRepairedDeviceMapper.insertLabRepairedDevice(labRepairedDevice);
    }

    /**
     * 修改仪器维修
     * 
     * @param labRepairedDevice 仪器维修
     * @return 结果
     */
    @Override
    public int updateLabRepairedDevice(LabRepairedDevice labRepairedDevice)
    {
        return labRepairedDeviceMapper.updateLabRepairedDevice(labRepairedDevice);
    }

    /**
     * 批量删除仪器维修
     * 
     * @param instanceIds 需要删除的仪器维修ID
     * @return 结果
     */
    @Override
    public int deleteLabRepairedDeviceByIds(Long[] instanceIds)
    {
        return labRepairedDeviceMapper.deleteLabRepairedDeviceByIds(instanceIds);
    }

    /**
     * 删除仪器维修信息
     * 
     * @param instanceId 仪器维修ID
     * @return 结果
     */
    @Override
    public int deleteLabRepairedDeviceById(Long instanceId)
    {
        return labRepairedDeviceMapper.deleteLabRepairedDeviceById(instanceId);
    }
}
